<#assign ctx=request.contextPath />
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>流程列表</title>
    <link rel="stylesheet" href="${ctx}/css.css">
</head>

<body>
<div style="height:0;"><a name="gotop">&nbsp;</a></div>
<div class="top">
    <a href="${ctx}/hello" class="backtrack"><img src="${ctx}/0.png"></a>
    <a href="javascript:history.back();" class="return"><img src="${ctx}/12.png"></a>
    <div class="box">
        流程列表
    </div>
</div>
<div class="empty"></div>

<#if (errors?? && errors?size>0)>
<ul  class="hint">
    <#list errors as err>
        <li>${err}</li>
    </#list>
</ul>
<br/>
</#if>

<p class="show_1 show">
    您共有${pdList?size!""}个流程模板：
</p>
<#list pdList as pd>
<table class="list_box">

    <tr class="lo_7">
        <td class="lo_3"><img src="${ctx}/tubiao.png" style="position:absolute;left:0;top:5px;"><span>ID<span></td>
        <td class="lo_4">${pd.id}</td>
    </tr>
    <tr>
        <td class="lo_3">名称</td>
        <td class="lo_4">${pd.name}</td>
    </tr>
    <tr>
        <td class="lo_3">Key</td>
        <td class="lo_4">${pd.key}</td>
    </tr>
    <tr>
        <td class="lo_3">版本</td>
        <td class="lo_4">${pd.version}</td>
    </tr>
    <tr>
        <td class="lo_3">描述</td>
        <td class="lo_4">${(pd.description)!""}</td>
    </tr>
    <tr>
        <td class="lo_3">启动</td>
        <#if pd.key?starts_with("procAlterMeter")>
            <td class="lo_4 lo_10"><a href="${ctx}/alterMeter/claimInst/${pd.id}">启动更换水表流程实例</a></td>
        <#elseif pd.key?starts_with("procSetupMeter")>
            <td class="lo_4 lo_10"><a href="${ctx}/setupMeter/startSetup/${pd.id}">启动安装大表流程</a></td>
        <#else>
            <td class="lo_4 lo_10"><a href="${ctx}/lossMng/loadDma/${pd.id}">启动漏控流程实例</a></td>
        </#if>
    </tr>
    <tr>
        <td class="lo_3">卸载</td>
        <td class="lo_4 lo_9"><a href="${ctx}/lossMng/undeploy/${pd.id}">谨慎操作：卸载流程模板</a> </td>
    </tr>
    <div style="height:10px;"></div>
</table>

</#list>
<div class="go">
	<a title="返回顶部" class="top_1" href="#gotop"></a>
	<a title="返回首页" class="feedback" href="${ctx}/hello"></a>
	<a title="返回底部" class="bottom" href="#gobottom"></a>
</div>
<div style="height:0;"><a name="gobottom">&nbsp;</a></div>

</body>
</html>